<template>
  <div>
    <ul>
      <li v-for="m in messageList" :key="m.id">
        <router-link active-class="active" :to="{
          name:'Detail',
          query:{
            id:m.id,
            title:m.title
          }
        }">{{m.title}}</router-link>
      </li>
    </ul>
    <hr>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Message",
  data() {
    return {
      messageList:[
        {id:'0001',title:'message001'},
        {id:'0002',title:'message002'},
        {id:'0003',title:'message003'},
      ]
    }
  },
  props: [],
  computed: {},
  components: {},
  methods: {},
  mixins: [],
  watch: {},
  filters: {},
  directives: {}
}
</script>

<style scoped>

</style>